﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ChangeProfile.aspx.cs" Inherits="MallInteractiveMap.CMSWebClient.Account.ChangeProfile" %>
<%@ Import Namespace="MallInteractiveMap.Language" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="accountInfo">
        <asp:UpdatePanel runat="server" ID="up">
            <ContentTemplate>
                <fieldset class="register">
                    <legend><%= LanguageLoader.GetText("PROFILE_INFORMATION")%></legend>
                    <p>
                        <asp:Label ID="NameLable" runat="server" Text="Name" AssociatedControlID="UserName" />
                        <asp:TextBox runat="server" ID="UserName" MaxLength="100" CssClass="textEntry" />
                        <asp:RequiredFieldValidator ID="NameRequired" runat="server" ControlToValidate="UserName"
                            CssClass="failureNotification" ErrorMessage="User Name is required." Text="*"
                            SetFocusOnError="true" ToolTip="User Name is required." ValidationGroup="ChangeProfileValidationGroup"></asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="LoginIdLable" runat="server" Text="Login Id" AssociatedControlID="LoginId" />
                        <asp:TextBox runat="server" ID="LoginId" MaxLength="50" CssClass="textEntry" />
                        <asp:RequiredFieldValidator ID="LoginIdRequired" runat="server" ControlToValidate="LoginId"
                            CssClass="failureNotification" ErrorMessage="Login Id is required." Text="*"
                            SetFocusOnError="true" ToolTip="Login Id is required." ValidationGroup="ChangeProfileValidationGroup"></asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                        <asp:TextBox ID="Email" runat="server" MaxLength="50" CssClass="textEntry"></asp:TextBox>
                        <asp:RegularExpressionValidator runat="server" ID="revEmail" ControlToValidate="Email"
                            ErrorMessage="Enter a valid email address." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            SetFocusOnError="true" Text="*" ValidationGroup="ChangeProfileValidationGroup"
                            CssClass="failureNotification" />
                    </p>
                    <p>
                        <asp:Label ID="SecretAnswerLable" runat="server" Text="Secret Answer" AssociatedControlID="SecretAnswer" />
                        <asp:TextBox runat="server" ID="SecretAnswer" MaxLength="100" CssClass="textEntry" />
                    </p>
                </fieldset>
                <p class="submitButton">
                    <asp:Button ID="UpdateProfileButton" runat="server" Text="Update Profile" OnClick="UpdateProfileButton_Click"
                        ValidationGroup="ChangeProfileValidationGroup" />
                </p>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
